#include "sort.h"

int main()
{
	SetSeed();
	int arr[N];
	for (size_t i = 0; i < N; ++i)
	{
		arr[i] = rand() + 1;
	}

	int arr2[8] = { 1, 3, 4, 100, 55, 66, 534, 67 };

	for (size_t i = 0; i < N; ++i)
	{
		std::cout << arr[i] << " ";
	}

	std::cout << std::endl;

	clock_t clock1 = clock();
	BubleSort(arr, N);
	clock_t clock2 = clock();

	for (size_t i = 0; i < N; ++i)
	{
		std::cout << arr[i] << " ";
	}
	cout << "\n" << "排序所花时间#" << ((double)(clock2 - clock1)) / 1000000 << endl;
}